Source File
row.go
Belonging Package
github.com/K-Phoen/sdk
package sdk/*Copyright 2016 Alexander I.Grafov <grafov@gmail.com>Copyright 2016-2019 The Grafana SDK authorsLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.ॐ तारे तुत्तारे तुरे स्व*/// Row represents single row of Grafana dashboard.type Row struct {Title string `json:"title"`ShowTitle bool `json:"showTitle"`Collapse bool `json:"collapse"`Editable bool `json:"editable"`Height Height `json:"height"`Panels []Panel `json:"panels"`Repeat *string `json:"repeat"`}var lastPanelID uintfunc ( *Row) ( *Panel) {lastPanelID++.ID = lastPanelID.Panels = append(.Panels, *)}func ( *Row) ( *DashlistPanel) {lastPanelID++:= NewDashlist("").ID = lastPanelID.DashlistPanel =.Panels = append(.Panels, *)}func ( *Row) ( *GraphPanel) {lastPanelID++:= NewGraph("").ID = lastPanelID.GraphPanel =.Panels = append(.Panels, *)}func ( *Row) ( *TablePanel) {lastPanelID++:= NewTable("").ID = lastPanelID.TablePanel =.Panels = append(.Panels, *)}func ( *Row) ( *TextPanel) {lastPanelID++:= NewText("").ID = lastPanelID.TextPanel =.Panels = append(.Panels, *)}func ( *Row) ( *StatPanel) {lastPanelID++:= NewStat("").ID = lastPanelID.StatPanel =.Panels = append(.Panels, *)}func ( *Row) ( *SinglestatPanel) {lastPanelID++:= NewSinglestat("").ID = lastPanelID.SinglestatPanel =.Panels = append(.Panels, *)}func ( *Row) ( *CustomPanel) {lastPanelID++:= NewCustom("").ID = lastPanelID.CustomPanel =.Panels = append(.Panels, *)}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |